interface IProps extends React.HTMLAttributes<HTMLElement> {
  prefix?: string;
  name: string;
  className?: string;
  size?: string;
  color?: string;
}
export default function index({ prefix = "iconfont", name, className, size, color, ...rest }: IProps) {
  return (
    <i className={`${prefix} ${name} ${className ?? ""}`} style={{ fontSize: size, color }} {...rest}></i>
  );
}
